var ip="http://127.0.0.1:8080";
var list = [1, 2, 3, 4, 5, 6];
var map = new Map();
map.set('1', 'hello');
map.set('2', 'world');
var mapList = {};
mapList['1'] = 'hello';
mapList['2'] = 'world';
mapList['ni'] = 'hao';
mapList[100] = 'hello2';
mapList[99] = 'world2';
function fun1() {
	$.ajax({
		type: 'post',
		url: ip+'/list/obj',
		contentType: 'application/x-www-form-urlencoded',
		dataType: 'json',
		async: false,
		traditional: false,
		data: {
			idList: list,
		},
		success: function(result) {},
		error: function() {},
	});
}

function fun2() {
	$.ajax({
		type: 'post',
		url: ip+'/list/obj',
		contentType: 'application/x-www-form-urlencoded',
		dataType: 'json',
		async: false,
		traditional: true,
		data: {
			idList: list,
		},
		success: function(result) {}
	});
}

function fun3() {
	$.ajax({
		type: 'post',
		url: ip+'/map/obj',
		contentType: 'application/x-www-form-urlencoded',
		dataType: 'json',
		async: false,
		data: {
			id:'1',
			map: map,
		},
		success: function(result) {}
	});
}

function fun4() {
	$.ajax({
		type: 'post',
		url:  ip+'/map/obj',
		contentType: 'application/x-www-form-urlencoded',
		dataType: 'json',
		async: false,
		// traditional: true,
		data: {
			id:'1',
			map: mapList,
		},
		success: function(result) {}
	});
}


function fun5() {
	$.ajax({
		type: 'post',
		url: ip+'/list/self',
		contentType: 'application/x-www-form-urlencoded',
		dataType: 'json',
		async: false,
		traditional: true,
		data: {
			idList: list,
		},
		success: function(result) {}
	});
}